package com.example.kotlin.basis

/**
 * Created by xiao_tan on 17/7/23.
 * 变量的声明与使用
 */

fun main(args:Array<String>){
    var name = 1;

    name = 1888888889//类型推断

    var i:Int = 214233123;//显示类型声明
    var a:Byte = 127;
    var b:Byte = -128;

    val number = "NO:9834234" //只读数据,相当于java的final

    println(name)
    println(i)

}